name = {"黑马程序员", "传智播客", "itcast", "itheima", "传智播客", "黑马程序员"}
print(name)

my_set = {"hello", "world"}
my_set.add("itheima")
print(my_set)
# my_set.remove("hello")
# print(my_set)
element = my_set.pop()
print(element)
print(my_set)
my_set.clear()
print(my_set)

set1 = {1, 2, 3}
set2 = {1, 4, 5}
set3 = set1.difference(set2)
set4 = set1.union(set2)
print(f"set3的值为：{set3}")
print(set4)
print(len(set4))
for i in set4:
    print(i)
print(set1)
print(set2)
set1.difference_update(set2)
print(set1)
print(set2)
